"This text really won't do anything"

'This text really won;t do anything'

"Hello, how are you?" "1+1" "I ate 4 bananas" "!@#$%^&*()"


print("This is a string using a double quote")
print('This is a string weith a single quote')
print("""This string has three quotes
look at what it can do! """)


print("Hello World!")

print("I said, "Don't do it")

print("I said, \"Don't do it")

print("I said, \"Don't do it\"")

print("""Rose are red
Violets are blue
I just printed multiple lines
And you did too!""")

print("Rose are red \nViolets are blue \nI just printed multiple lines \nAnd you did too!")

"John"
"Everyman"
"John" + "Everyman" # 将两个字符串串联起来
"John" "Everyman"   # 不推荐这种写法
"John" + " " + "Everyman"
"John" + "." + "Everyman"
print("John", "Everyman")


# 用不同的方法串联字符串
"John Q. %s" % ("public")

"John %s%s" % ("Every", "Man")

#更多字符串格式
"%s %s %10s" % ("John" , "Every" , "Man")

"%-5s %s %10s" % ("John" , "Every", "Man")  
